package com.cqs.learning.spring.clound;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;


/**
 * TODO 服务线下检测
 * 服务上下线检测机制
 * Created by li on 20-2-29.
 */
@SpringBootApplication
@EnableEurekaServer
public class EurekaServerApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        try {
            SpringApplication application = new SpringApplication(EurekaServerApplication.class);
            application.run(args);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}
